﻿
using System.Runtime.Serialization;

namespace Moonwish.Core
{
    /// <summary>
    /// 分页
    /// </summary>
    [DataContract]
    public class Pagination
    {
        #region 属性

        /// <summary>
        /// 页索引
        /// </summary>
        [DataMember]
        public int PageIdx
        {
            get;
            set;
        }

        /// <summary>
        /// 每页大小
        /// </summary>
        [DataMember]
        public int PageSize
        {
            get;
            set;
        }

        /// <summary>
        /// 是否启用分页
        /// </summary>
        [DataMember]
        public bool Enabled
        {
            get;
            set;
        }
        #endregion
    }
}
